package com.hibiscusking.system.mapper;

import com.hibiscusking.system.domain.Role;
import com.hibiscusking.basic.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author hibiscusking
 * @since 2022-10-24
 */
public interface RoleMapper extends BaseMapper<Role> {

    List<Long> findMenuMiddleByRoleId(Long id);

    List<Long> findPermissionMiddleByRoleId(Long id);

    void addMiddleMenu(@Param("id") Long id, @Param("menus")List<Long> menus);

    void updateMiddleMenu(List<Long> menus);

    void deleMiddleMenu(Long id);

    void deleMiddlePermission(Long id);
}
